-- GENERATED SPELL FOR [Znort] --


function spell0_2765(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(845,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2765', 566, 1)
end

function Sorts_2765(pUnit, Event)
local choix_sorts_2765 = math.random(0, 0)
if choix_sorts_2765 == 0 then
pUnit:RegisterEvent('spell0_2765', 1, 1)
end
end

function mob2765_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2765', math.random(1500, 3000), 1)
end

function mob2765_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2765_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2765_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2765, 1, 'mob2765_Action')
RegisterUnitEvent(2765, 2, 'mob2765_Leave')
RegisterUnitEvent(2765, 3, 'mob2765_Kill')
RegisterUnitEvent(2765, 4, 'mob2765_Die')
